class ScheduledJob {
    String title
    String job
    String scheduleType
    String startDate
    String hours
    String minutes
    String recipients
    String cronExpression
    String numberOfHours

    static constraints = {
        title(blank:false)
        job(blank:false)
        scheduleType(inList:['Once', 'Hourly', 'Daily', 'Weekdays', 'Weekly', 'Monthly', 'Cron'], blank:false)
    }
}
